package com.easy.frame.servers.sys.client;

import com.easy.frame.base.api.pojo.PageDTO;
import com.easy.frame.base.api.pojo.PageVO;
import com.easy.frame.base.basic.ServiceResponse;
import com.easy.frame.servers.sys.dto.SysProjectDetailPageDTO;
import com.easy.frame.servers.sys.entity.SysProjectDetail;
import com.easy.frame.servers.sys.vo.SysProjectDetailPageVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 品牌开放接口声明类
 *
 * @author tp
 * @date 2020/12/16 14:47
 */
@FeignClient(value = "sys", contextId = "sysProjectDetailClient")
@RequestMapping("/sys-prod")
public interface SysProjectDetailClient {
    @PostMapping("/page")
    ServiceResponse<PageVO<SysProjectDetailPageVO>> page(@RequestBody PageDTO<SysProjectDetailPageDTO> param);

    @GetMapping("/by/id")
    ServiceResponse<SysProjectDetail> getById(@RequestParam Long id);

    @PostMapping
    ServiceResponse<SysProjectDetail> save(@RequestBody SysProjectDetail entity);
}
